package cn.wegoteam.shop.inter;

import javax.servlet.http.HttpServletRequest;
import cn.wegoteam.shop.po.Order;
import cn.wegoteam.shop.po.User;

public interface PayImpServiceInter{

	/**
	 * 支付
	 * @param order
	 * @param ids
	 * @param user
	 * @param request
	 * @return
	 */
	public String pay(Order order,User user,
			HttpServletRequest request);

	/**
	 * 验证支付结果
	 * @param request
	 * @param tasks
	 * @return
	 * @throws Exception
	 */
	public String payReturn(PayServiceInter payService,HttpServletRequest request);

	/**
	 * 更新订单状态
	 * @param request
	 * @param out_trade_no
	 * @param trade_no
	 * @param trade_status
	 * @param buyer_email
	 * @param tasks
	 * @return
	 * @throws Exception
	 */
	public String handle(PayServiceInter payService,HttpServletRequest request, String out_trade_no,
			String trade_no, String trade_status, String buyer_email);

}
